@extends('Admin.layout.layout')
@section('title','网站配置')
@section('home','网站配置')
@section('weizhi','轮播图添加')
@section('con')
<div class="panel-body">
	<form role="form" method="post" action="{{url('/admin/config/insert')}}" enctype="multipart/form-data">
		{{csrf_field()}}
		<div class="form-group ">
		<label>新闻标题:</label>
		<!-- <input class="form-control" id="exampleInputEmail1" placeholder="Enter email" type="email"> -->
			<select class="form-control m-bot15" style="width:500px;" name="pid">
				@foreach($posts as $k=>$v)
            	<option value="{{$v->id}}">{{$v->title}}</option>
            	@endforeach
          	</select>
		</div>
		<div class="form-group">
			<label >说明:</label>
          	
			<select class="form-control m-bot15" style="width:500px;" name="explain">
            	<!-- <option value="">轮播图</option> -->
              	@foreach($types as $key=>$value)
              	<option value="{{$value->id}}">{{$value->name}}</option>
				@endforeach
          	</select>
			<!-- <input style="width:500px;" class="form-control" placeholder="说明" type="text" /> -->
		</div>
		<div class="form-group">
			<label for="exampleInputFile">上传图片</label>
			<input id="exampleInputFile" type="file" name="img">

			<p class="help-block"></p>
		</div>
		<div class="checkbox">
			<label>
				<input type="radio" name="position" value="1">板块封面
			</label>
		</div>
		<div class="checkbox">
			<label>
				<input type="radio" name="position" value="2">轮播图 
			</label>
		</div>
		<button type="submit" class="btn btn-primary">确认添加</button>
	</form>
<p style='color:red;font-size: 12px;'>
	
{{session('error')}}
</p>
</div>
@endsection